@import '../../../res/theme/xxhz.scss';

.font-family-price {
  font-family: Avenir !important;
}

.has-bg-white {
  background-color: #ffffff;
}

.small-goods-box {
  width: 100%;
  box-sizing: border-box;
  padding-top: 0;
  display: flex;
  flex-wrap: wrap;

  .left, .right {
    width: 50%;
    box-sizing: border-box;
  }

  .salesVolume {
    font-size: 22px;
    color: $color-font-less;
    box-sizing: border-box;
  }

  .left {
    padding-right: 10px;
  }

  .right {
    padding-left: 10px;
  }

  .good-item-box {
    width: 100%;
    flex-shrink: 0;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.11);
    border-radius: 14px;
    margin-bottom: 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-sizing: border-box;
    overflow: hidden;

    .img-box {
      width: 100%;
      border-top-left-radius: 20px;
      border-top-right-radius: 20px;
      overflow: hidden;
      flex-shrink: 0;
      position: relative;

      .discount {
        min-width: 50px;
        position: absolute;
        top: 0;
        left: 0;
        letter-spacing: 1px;
        color: #fff;
        background-color: #ff2402;
        border-radius: 20px 20px 20px 0;
        text-align: center;
        padding: 4px 10px;
        font-size: 20px;
        white-space: nowrap;
        height: 28px;
      }

      .refund-sign {
        min-width: 50px;
        position: absolute;
        top: 0;
        left: 0;
        letter-spacing: 1px;
        color: #fff;
        background-color: #38ba65;
        border-radius: 20px 0 20px 0;
        text-align: center;
        padding: 4px 10px;
        font-size: 20px;
        white-space: nowrap;
        height: 28px;
      }

      .top-title-box {
        position: absolute;
        bottom: 0;
        left: 0 !important;
        color: #fff;
        font-size: 28px;
        width: 100%;
        height: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        background: rgba(0, 0, 0, .25);

        .title-box {
          padding: 15px;
        }

        .top-title {
          width: 100%
        }

        .go-look {
          background: #f58240;
          color: #fff;
          height: 36px;
          margin-top: 10px;
          font-size: 22px;
          line-height: 36px;
          text-align: center;
          width: 90px;
          border-radius: 32px;
        }
      }

      .img {
        width: 100%;
        min-height: inherit !important;
        display: block;
      }

      .tips {
        width: 140px;
        background-color: rgba(0, 0, 0, 0.46);
        color: white;
        font-size: 20px;
        text-align: center;
        line-height: 40px;
        position: absolute;
        top: 0;
        left: 0;
        border-bottom-right-radius: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 10px;
        max-width: 80%;
      }
    }

    .title-box {
      font-size: 28px;
      margin: 20px 0 6px;
      margin-top: 0;
      padding: 0 15px;
      padding-top: 20px;
      box-sizing: border-box;

      .title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /*! autoprefixer: ignore next */
        -webkit-box-orient: vertical;
        /* autoprefixer: on */
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }

    .price-box {
      font-size: 22px;
      color: $color-font-secondry;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px;
      box-sizing: border-box;

      .price-box-yh {
        margin-top: 6px;
        width: 88px;
        height: 32px;
        font-size: 20px;
        color: #fff;
        text-align: center;
        line-height: 32px;
        background: #ed6c47;
        border-radius: 6px;
        vertical-align: middle;
        margin-right: 5px;
      }

      .symbol {
        font-size: 28px;
        color: $color-price;
      }

      .number {
        font-size: 46px;
        color: $color-price;
        padding-left: 3px;
        padding-right: 8px;
      }
    }
  }
}

.h {
  height: 320px;
}

.shangxin-today-block-item-image {
  .commission_price {
    position: absolute;
    border-top-right-radius: 30px;
    left: 0;
    font-family: Avenir;
    background: linear-gradient(to left, #ff7c0f, #ff7910, #ff6e15, #ff6a17, #ff5f1b);
    bottom: 0;
    padding: 6px 22px 4px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;

    .commission_price-text {
      font-size: 22px;
    }

    .price-symbol {
      margin-right: 2px;
      margin-left: 8px;
      font-size: 16px;
    }
  }

  .commission_price {
    background-color: $mainColor;
  }
}
